<% if activities and activities.size > 0 %>
	<div class="basic-form">
		<fieldset id="activities_by_user" style="margin-top: 20px">
			<legend><%= t :legend, :scope => [:milestone, :milestone_activities] %></legend>
			<p><%= t :description, :scope => [:milestone, :milestone_activities] %></p>
			<% activities.each do |user, activities| %>
				<fieldset>
					<% if user.nil? %>
						<legend><%= t :activities_for_milestone, :scope => :activity %></legend>
					<% else %>
						<legend><%= t :activities_for, :user => user, :scope => :activity %></legend>
					<% end %>
					
					<% for activity in activities %>
						<dl>
							<dt <%= "class='strike'" if activity.completed_at %>><%= link_to activity, [@project, activity] %></dt>
							<dd class="hint"><%= t :label, :scope => [:activity, :age] %> <%= time_ago_in_words activity.created_at %></dd>
						</dl>
					<% end %>
				</fieldset>
			<% end %>
		</fieldset>
	</div>
<% end %>